<style type="text/css">
  label {
    display: block;
    margin-top: 10px !important;
    margin-bottom: -10px !important;
}  
</style>

<script type="text/javascript">
  $(document).ready(function(){
    $("#hotel_room_type_idr_price").style.backgroundColor = 'red';
  });
</script>
<%= form_for(@hotel_room_type, :html => { remote: true, id: "form_hotel_room_type" }) do |f| %>
  <%= hidden_field_tag 'hid', params[:hid] %>
  <div class="side-color">
      <%= f.hidden_field :hotel_id, {:value => params[:hid]} %>
    <div class="field">
      <%= f.label :room_name %><br />
      <%= f.text_field :room_name %>
      <div id="room_name_error" class="error-message"></div>
    </div>
    <div class="field">
      <%= f.label :idr_price %><br />
      <%= f.number_field :idr_price %>
      <div id="idr_price_error" class="error-message"></div>
    </div>
    <div class="field">
      <%= f.label :usd_price %><br />
      <%= f.number_field :usd_price %>
      <div id="usd_price_error" class="error-message"></div>
    </div>
    <div class="field">
      <%= f.label :idr_promotion_price %><br />
      <%= f.number_field :idr_promotion_price %>
      <div id="idr_promotion_price_error" class="error-message"></div>
    </div>
    <div class="field">
      <%= f.label :usd_promotion_price %><br />
      <%= f.number_field :usd_promotion_price %>
      <div id="usd_promotion_price_error" class="error-message"></div>
    </div>
    <div class="field">
      <%= f.label :max_guest %><br />
      <%= f.number_field :max_guest %>
      <div id="max_guest_error" class="error-message"></div>
    </div>
    <div class="field">
      <%= f.label :primary_picture %><br />
      <%= f.file_field :primary_picture %>
      <div id="max_guest_error" class="error-message"></div>
    </div>
    <div class="field ">
      <label class="checkbox">
        <%= f.check_box :is_on_promoted, class: "checkbox" %> Is On Promoted
      </label>      
      <div id="is_on_promoted_error" class="error-message"></div>
    </div> <br/> <br/>
    <div class="actions">
      <table>
        <tr>
          <td>
            <%= link_to "back", hotel_room_types_path({ hid: params[:hid]}), class: "btn btn-inverse", remote: true %>
          </td>
          <td>
            <%= f.submit :class => "btn btn-primary" %>
          </td>
        </tr>
      </table>
    </div>
  </div>
<% end %>
